package com.luomu.base.api.cookBook.excel.service;

import com.luomu.base.api.bo.RspBaseBO;
import com.luomu.base.api.bo.RspPage;
import com.luomu.base.api.cookBook.excel.bo.CommonExcelExportOperationReq;
import com.luomu.base.api.cookBook.excel.bo.CommonExcelExportReq;
import com.luomu.base.api.cookBook.excel.bo.CommonExportListDataReqBO;
import com.luomu.base.api.cookBook.excel.bo.CommonExportListDataRspBO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * excel公共导出策略
 * @author
 * @version 1.0.0
 * @since 2024-11-29
 */
public interface CommonExcelExportService {

	/**
	 * 通用excel导出策略
	 */
	@ResponseBody
	@PostMapping(value="/export")
	RspBaseBO export(@RequestBody CommonExcelExportReq commonExcelExportReq);

	/**
	 * 通用查询导出结果数据
	 */
	@ResponseBody
	@PostMapping(value="/queryData")
	RspPage<CommonExportListDataRspBO> queryCommonExcelExport(@RequestBody CommonExportListDataReqBO req);

	/**
	 * 删除导出数据
	 */
	@ResponseBody
	@PostMapping(value="/delete")
	RspBaseBO delete(@RequestBody CommonExcelExportOperationReq req);

	/**
	 * 下载导出地址
	 */
	@ResponseBody
	@PostMapping(value="/download")
	RspBaseBO download(@RequestBody CommonExcelExportOperationReq req);
}